package cvsexercise13;

/* Create an abstract version of the Shape class
 * the abstract class should extend the Drawable interface 
 * and include an abstract declaration for the getArea() method
 */
abstract public class Shape implements Drawable {

	/* private string instance variable */
	private String strColour;
	
	/* constructor (takes a string parameter) */
	public Shape(String colour) {
		this.strColour = colour;
	}
	
	/* setter method to change the colour of the shape */
	public void setColour(String colour) {
		this.strColour = colour;
	}
	
	/* getter method to return the colour (as a String) */
	public String getColour() {
		return strColour;
	}
	
	/* create an abstract method signature for the getArea() method */
	abstract public double getArea();
	
	/* override the toString() method to write out the current colour */
	@Override
	public String toString() {
		return ("Shape has colour = " + strColour);
	}
}
